improving error messaging when no git is found