fix thinko in dir(), bug found by dagurval++
Merge pull request #153 from labster/nom

fix thinko in dir(), bug found by dagurval++