Try to improve git update/error detection