I can't redo the task, that's the problem. I said I have a save before I reset the quest, after I got detected and before I talked to mclafferty.
Sorry, I misunderstood - I thought you had a save from before you were detected.
There may not be much you can do, except use the Wiki and try various combinations of resetting commands to make it work right - odds are you won't be able to, though. Make sure you make another save before you start experimenting, though, so you can revert to it in case you bollix up your game.
You may just have to live with McLafferty bawling you out, and try again next time. That's a part of role playing.