fileutils: do not hardcode /tmp usage

It's actually not always /tmp on all operating systems, especially if
the TMPDIR environment variable is set.

Change-Id: I9bc67769a39535dfeafe8c60aa63792e21ac9703
Merge "fileutils: do not hardcode /tmp usage"