Fixes issues with deployment script