Fixed mktemp usage on linux