fixed up text_install for -mode, and -dir_mode will do all flags eventually