Get prefix directory correctly
Revert "trying to fix RDotNet Windows"

This reverts commit 42be171d8a7b12301fed9baf559757b4e0cc249f.