Correctly handle broken symlinks at the target locations