Update unquote to handle invalid sysconfig variables properly

Fixes https://bugzilla.novell.com/show_bug.cgi?id=864635