Fixed Link discovery on Mac

Just a missing return... lesson: heed warnings