JGit isBareRepository heuristic is wrong - test to confirm it

The CLI Git implementation of git rev-parse --is-bare-repository
applies much more logic than simply checking if the files are stored
in a directory named .git.  The JGit implementation needs to do
similar checks if it needs a reliable response from isBareRepository