Add some sanity checking to the package script.