Locating an app by its bundle identifier from the command line
The magic command is:
mdfind kMDItemCFBundleIdentifier = "com.zerotier.ZeroTierOne"
You can determine this by working backwards from mdls foo | grep kMDItemCF
So if you didn't know iPhoto's CF Bundle Identifier:
Mac:~ me$ mdls /Applications/iPhoto.app | grep kMDItemCF
kMDItemCFBundleIdentifier = "com.apple.iPhoto"