fixes issue #2

Replace -printf since it isn't an option for BSD-derived find with call to -exec dirname.