improving resubmit failed jobs script to account for multiple rescue dags

These comments belong at the top of the file as a header.