fix all the prompting bugs
(hopefully) fix all the remaining autoinstall bugs
properly detect git failures

I had refrained from fixing this in the past due to ease of
debugging.
small bug fixes