core: fix Windows failures on machine tests
core: fix tests failing on WIndows dueo to bad temp dir gen
core: fix more cases where ".path" was being called on strings
core: don't test fork(1) on Windows