Fixed regex for package names - now it allows empty strings.