Correctly setup logfile in out_dir