remove newline from the output of `mktemp`