Change JGit.isBareRepository implementation to pass more tests

Allow the passing tests to execute on JGit

Some of the tests continue to fail and need further investigation.