fix the case if process.env.PATH could not be modified