Previously it contained the entire path, which made '-k' match against any name in the full path of the package. Fix #7040