sdutil: Support colons in register command.

We already do this for exec.

This also fixes a crash if the command line is not valid.

Signed-off-by: Michael Elsdörfer <michael@elsdoerfer.com>