Update all patchinfo files to use the new API
Fix bug where the PATH environment variable is modified