generic method to get the root of the current git project