Fix mktemp failing on Mac.