added more robust git update shell script