fix another occurrence of dirname
Merge pull request #2 from jdsn/dirname-fix

fix another occurrence of dirname