Improved PackageManager._rename_asset_interactively().

Improved path handling.

Fixed bug in which package name was replaced potentially multiple times in
path. Now package name is replaced only in base name of path leaving directory
unchanged.