Fix issue with whitespaces in folder names

Thanks a lot for the script and your blog post about it. I had to put the base and target paths in quotes to avoid errors with white spaces in the path.

Also I think it would be good if you could mention in your blog post that the script should be moved up before the compile sources build phase, stumbled over that on the first try ;)