Fix process.env.HOME which is not cross platform