better path matching for windows
untested tweaks for the migrator