Moved the use of project_path into the if statement. For #224
Merge pull request #1 from quarnster/master

Moved the use of project_path into the if statement. For #224