This puts generic logic for KiCad environment vars in one place. Also updates the DIALOG_CONFIGURE_PATHS help to document the new KICAD_USER_TEMPLATE_DIR and KICAD_TEMPLATE_DIR.