fix parsing of device lists containing ":"

Signed-off-by: Jan Dvořák <mordae@anilinux.org>