Fix some assembler generating scripts for better unification