First pass at file-level run-as-module for #630