fix infolog.txt written to wrong dir