New Installation won't help and is not the reason why it doesn't work.
The answer is simple. DON'T use packagename
You can only parse on package name if the plugin sets one! Only very few plugins set a package name. The auto package naming happens AFTER the packagizer rules!
So at the time the rule is being processed, there is no package name to work on.
The simple solution is: Use Filename