Allow referencing by path

Fixes https://github.com/phpcr/phpcr-shell/issues/93