Improved deploy script