Abort on errors, do not use mktemp (not portable)