Fixing deployment scripts