Fixed issues when trying to determine git revision from subfolder