catch dangling symlink problem