Fix guess_library_name parsing of libfoo-2.0