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.