Updated scripts for build base-vm and factory-vm variants.