Ensure git prompt does only appear in git folders.