Miscellaneous deploy script improvements.