Backport of "registry: Use plugin directory from the build system for relocateable Windows builds" into 1.16
Backport of !232 (merged) "registry: Use plugin directory from the build system for relocateable Windows builds".
Commits:
- 533fbf76 registry: Use plugin directory from the build system for relocateable Windows builds