Improved the way to set PATH