Simplified bash command to not use subprocess.

Also checks that the file ran correctly by checking an output file was
created.