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.