Fixes bugs introduced in v1.2.0 in deployment scripts