Making getBasePath evaluate environment parameters

It was previously not possible (as far as I could tell) to parameterize the project base dir.