Fixing up namespaces for using Dependency class.
Moving DirCommand's ConsoleAdapter into common.