Corrections to deploy script