Exit if TMP or OUTPUT don't exist