fix package name escaping

when matching package name with regexp, consider that package name may
contain regexp specials.