fixes errors when computing bash prompt in a freshly created git folder