fix removing broken links in bin, fix #2436