Fixes addition/removal of imports for packages with irregular names.

That is, packages with a name that doesn't match the base of import
path.
It uses build.Import() to figure out the package name from the source
code.