fix bug in core weeder where some files were potentially able to fall through the cracks