Check for git aware directory, not file