Read command line parameters *before* reading config file, since some parameters have to be defined before others (e.g. output directories depend on the workdir parameter).