fix build error on POSIX path.fs.platform()