Several improvements to site maint scripts.