Added 'dir' command implementation.