Use github.com/juju/names package

Also remove unnecessary usage of errors package when fmt was already imported.