The test cut "/plugins.yml" off Path() to make the folder; on Windows
the path ends in "\plugins.yml", nothing was cut, and MkdirAll made a
directory named plugins.yml, so the read failed with "is a directory".
It now uses filepath.Dir. No other filesystem path is cut with a "/"
suffix (the remaining TrimSuffix calls on "/..." are URL paths).
What was run:
- Windows box (x64, cross-compiled pluginrt.test.exe, sandbox home):
old: TestBrokenFileIsKept FAIL "open ...\magpie\plugins.yml: is a
directory"; new: the whole package PASS (run inside a copy of the
source tree, since TestPluginsImportOnlyCore walks it).
- macOS: go test ./internal/pluginrt ok; gofmt, vet as in this push.