Fixed up porting scripts.