fixing hosts line endings for win, adding rmdir for -r mounts