Added KeyboardInterrupt handling.
Bugfix: section_name_to_regex needs to pass through variables.
Now distinguishing between global and local variables everywhere. Cleaner and fits better with eval.