added trailing / for dir, not file
Merge pull request #4 from alop/mkdir

added trailing / for dir, not file