remove unused variable path.

rubocop caught this, and I did some quick hack that ended up breaking spec.
This fixes so all specs pass.