Added try catch around trying to change location to update via git