Move some variable definitions closer to where they're used.

Identify variables needed within an 'if' block.
Fix global variables revealed by use of 'use strict' in PodcheckUtils.pm.