Check for .git existence, not whether it's a directory.

I think this is the right thing to do when using bakefile as a submodule, but would appreciate a confirmation that I'm not missing something here.

---

This ensures that correct (i.e. git tags-based) version detection is also used
when bakefile repository is a submodule inside some other git repository as
.git is a file and not a directory in this case.