Fixes issues in deployment scripts.