Fix reload on Windows machines

This will fix path handling on Windows machines by using platform independent code
Doesn't work on Windows due to leading / making path invalid.