Fixed bug in packaging scripts.