Make PATH export more efficient