fix #22: implement the \d directory command