Scripts/ZulGurub: clean up the code and remove old hacks