Use getPath instead of shareInfo

Fixes #288