cleaning up to make the script work only with xcode 5