big cleanup in the link init/sync logic
use consistent stringify to compare paths