Fast git dir check (0.40 -> 0.12 on my machine with a repo)