Revert "Fix bug when asking for latest tag in a directory that is not a git dir"

This reverts commit c9989626e7167477a353054616b6087b8b87034e.

This change made it difficult to test - revert for now