vm_control: cleanup ugly code

Use GString to save cmdline instead of char *, this make our code more simple
and readable

Signed-off-by: Dunrong Huang <riegamaths@gmail.com>