Use glib to parse and launch commands for util_exec

Fixes #958