Resolve template files relative to $GOPATH; Fixes go-gl/glow#35

This would resolve template files relative to $GOPATH (fixing issue #35).
push this function to the bottom (below the public API)