Fix for #2 - Command palette hang when no git repository exists in project's directory hierarchy

Looks like you just missed the "did I reach the root directory without finding anything" checks in a couple places.  So, I just copied the code from the place that had it to the two that were missing it.  This seems to fix the issue.