Simplify the code that initializes process.env.PATH
Code cleanup