Add normalize_name function

This will pave the way for .x86_64 architectures to be used in pkg
states.
Normalize package names
Normalize package names
Normalize name for single package target
Merge pull request #11075 from terminalmage/issue7306

Allow for pkgname.x86_64 to be used in pkg states