More compatible use of mktemp