minor fix in exporting PATH on the addpath function