Rework deploy script