Add basename as prefix to all the temporary files.