Remove /tmp/ from tempfile path