Add dirname command
Merge pull request #5 from ttacon/master

Add dirname command