PAHMA-979: improvements to job queue analysis program (checkRuns.pl) and uploadMedia.py