Removed with_new_path and set PATH variable from processbuilder

This PR removes the with_new_path script from all the platforms and sets PATH variable as environment for processbuilder