This fixes the profile so it uses the PATH at time of load instead of the PATH when the profile is compiled. Since $PATH wasn't escaped it was being expanded when the buildpack was installed and would clobber the PATH set by other buildpacks that were loaded before it. I'm guessing profiles are loaded in alphabetical order (ours is dms.sh) which is why we ran into this.
This fixes the profile so it uses the PATH at time of load instead of the PATH when the profile is compiled. Since $PATH wasn't escaped it was being expanded when the buildpack was installed and would clobber the PATH set by other buildpacks that were loaded before it. I'm guessing profiles are loaded in alphabetical order (ours is dms.sh) which is why we ran into this.