Thanks for your solution. It works.
But, however you can extend this for a next release. Because, for creating a separated script only for using windows variables in simple path strings, its oversized in my opinion. Additionally the path convention for external tool files and mode file then will be the same.