Allow users to specify their preferred configuration directory by using the top level flag (a.k.a 'global flag') --config-dir. This also introduces the design of baking top level flags into the executor.
Save the credentials to the credentials.json file in the config directory.