Handle projects with space in the name

Quoting some of the variables expansions prevented the word splitting and let you check for projects with spaces on the name.
Merge pull request #1 from bltavares/patch-1

Handle projects with space in the name