fixed problem with double links from soname to filename

Signed-off-by: Luca Clementi <luca.clementi@gmail.com>