pass three temp files to the bash script, since mktemp is different on OS X than Linux
stop on error