lib9: handle empty TMPDIR more gracefully.

Before, an empty TMPDIR would lead to:
cannot create <nil>/go.o: No such file or directory

R=golang-dev, iant, dave, bradfitz
CC=golang-dev
https://codereview.appspot.com/8355045

Committer: Brad Fitzpatrick <bradfitz@golang.org>