How to open terminal from within a folder using contextual menu?
It's not exact answer for your question, but there is small app in Mac App Store called Go2Shell which adds button to Finder which opens Terminal with path of current folder opened.