Don't use brace expansion because of a bash 3: we end up with two temp files instead of one
Improve error message