Use the temp folder for all intermediate files.

This makes for easier debugging and cleanup.
Do not add icon to target/file/folder if it doesn't exist.