Fix ddl and bulk scripts when sys.argv was stripped and declare minimal versions of required packages