More fixes to deploy script