Dir#open,foreach,path and refactor coercion
Merge pull request #806 from kostya/dir

Dir#open,foreach,path and refactor coercion