Improve running of external commands: tie in with external logging hooks and report stdout back to top level exceptions. Additional flexibility in file extension handling for splits