Fix detection of software when displayname contains "," character
Abort inventory when too many errors are detected in build_inventory
function