bugfix. handles script names with spaces correctly

This adds more quoting around file names, to handle
scripts with file names containing spaces that use
cocoapods
add test case for cocoapods script with weird name