Changes to allow project path to include spaces.

Specifying a project path containing spaces was causing the script to go into an infinite loop. This has been fixed to gracefully accept space-containing paths.
Merge pull request #692 from iceocean/next

Changes to allow project path to include spaces.