Tweaked the example shell script for XCode AddTextToImageXCodeRunScriptBuildPhase.sh to quote all of the directory path environment variables so that spaces in project/target names do not break the script