make git update of code in deploy more robust