make pkg tests work more by setting PATH

Merge to v6.0