Fixed the order of configuration settings

It makes more sense to read system configuration settings first, and have command line arguments override them as required.