Making getBasePath evaluate environment parameters