Filesystem/autoload fixes for windows, refs #2304, #2342, #2365