Fix an issue on Windows because process.enc.PWD doesn't exist and split with '/' won't work on Windows