Handle broken symlinks when using the target option