Better way of resolving the instance from path. Fixes #66