I\'m using find for a task and I noticed that when I do something like this:
find `pwd` -name \"file.ext\" -exec echo $(dirname {}) \\;
it will
I don't know why you're getting that, but try this:
find `pwd` -name file.ext |xargs -l1 dirname