fix filename generation for the package script.