Fixed undefined variable 'path' in Reference

A typo, basically.

This bug would manifest itself as

    NameError: global name 'path' is not defined

when calling the `remote_name` method of a Reference object.