Master 'khmer' script which dynamically runs sub-commands