Fix condition on remove broken links

I need to check if folder exists...