Properly handle lack of git tree when computing ver