1. save last directory in *.ini file
2. support for dos gbk output