A friendly error message here was a last minute addition,
but untested and as it turns out broken. Due to piping the loop executes
in a subshell and thus meta_prefix always retains its original value at
the time of check. Instead actually test for anything being written out.