Updated prepare_package script