[cli] only set the config directory the first time CommandCommand is run