Add tmp path to export file when in a subdirectory.