Remove directories that don't contain solutions