Fixes #3767 (npm install overwrites npm link)

This adds a check for symlinks when installing
to prevent the install from overwriting any dependencies
that have been previously linked.

remove network access for tests