Fix silent exit when run from non git repo