runner: minor tweaks (variables, regex compilation)