Fix xcode generation of scripts