FIX: Broken file link tracking (fixes #996)