refactor(cloudinit): quit using grep