Fix library name parsing of libfoo-2.0