Improved command line parsing
Script name is inspected to determine a preference for ODS vs. ODT.