Fix reload on Windows machines

This will fix path handling on Windows machines by using platform independent code