Fix bug where new shell would not be created when not in git repository