fix #22: Implement the \d directory command