Changed the code to retrieve the base path of the profile environment

Removed the dependency that it should be a Git repository.