Use Dir.mktmpdir to stage the files, instead of the manual timestamped directories.