Fix bug whereby broken symbolic links cannot be removed