Added implementation of 'dir'

Signed-off-by: Vinzenz Feenstra <evilissimo@gmail.com>