Support for package names with a dot (.) in them and fixed pattern support for sub/gsub commands