make dir() lazy; written while waiting for plane to YAPCNA
Merge pull request #161 from labster/nom

make dir() lazy; written while waiting for plane to YAPCNA