I assume you searched and discovered that ditto is also a BSD command for copying files, which is included on all Macs?[1]
This conflict may not be as confusing as the original name. I gather from the docs that you never invoke your version of ditto from the command line?
[1]: https://developer.apple.com/library/mac/documentation/Darwin...