renamed fullpath to path

and changed one ref to avoid the 'path' lib