clean up when not in git dir