Copy all used files in a tmp folder