hooks: improve even more shlib-provides detection: accept sonames with '-' chars.