helper: Allow kernel and modpath to be selected from envvars (RHBZ#671082).