linkDir fix for package.json directories