Improved deployment script