Fixed 'path not defined' error when referencing remote_name of non-remote branch

The 'path' variable is an attribute of self