Sorry to hear about the bungle(s) mate- wouldn't be the first time the bureaucrats cost a developer unnecessary time, money and anguish... unnecessarily.
Luckily, your a smart person who was able to think on the fly and fix things yourself. Well bloody done!