bug fixed in dirs config,add flags for 'command'