Fix reload on Windows machines

This will fix path handling on Windows machines by using platform independent code
This was a source of error - using old ns object instead of looking up fresh one after reload