More restrictive regexp when extracting package name.