gosrc: Accept domain.root in IsValidRemotePath.

This change mirrors the change done in https://golang.org/cl/12193.

Fixes #355.
2 files changed