Use cloud-init's subp code