This changes the semantics as the modified PATH wasn't being exported before.  @oxtopus can you comment on whether the modified version is a good change or should we leave as before?