tracefile: Deal with chdir and relative files.