go/build: add ctxt.MatchFile

Fixes issue 6369.

R=dsymonds, r
CC=golang-dev
https://codereview.appspot.com/13708043