autogen: improve sysdeps parser

Signed-off-by: Jakub Filak <jfilak@redhat.com>