added error checking around condor_q incase the job no longer exists
added capability to specify tmp dir to store htcondor submit /log files