Fix generation of hashes for package scripts