Various fixes to the automated release building scripts.