Attempt to solve Bug #2795. review @dinhviethoa

review @dinhviethoa 
I meant: `getProjectLocation()` should use the new method you created.