autotest: fixed tmp path handling in autotest for dump_logs.py