Fixed outprefix problem in ants_regwrite.