Defer reading credentials until running main.