Revert "Delete dirCommand"

This reverts commit cefed8e9d609db0833ff7b063b6c1328399b88b7.
Revert "Revert "Delete dirCommand""

This reverts commit 2990728301c84892a73d9447a2009ecf2f1187c0.
Revert 92529e5..98dfd0b

This rolls back to commit 92529e55c89f52f22dd7130c4b11217aff253c3d.