io/ioutil: use filepath.Join, handle trailing / in $TMPDIR R=niemeyer CC=golang-dev https://golang.org/cl/4256057