Fix bugs in osx-dictionary-get-definition