fix git-dir searching pattern again (#5)

Thanks to @rhysd & @Flast