fixes issue #2

Replace -printf since it isn't an option for BSD-derived find with call to dirname.
Merge pull request #3 from lcasburn/master

fixes issue #2. Thanks Ledah!