Modify package script to work on lua 5.2