Add pkg_script support