Fix mktemp variable (proc instead of prog)