Don't use string.gsub to derive the library name

The pattern was an unsanitized path name which may contain special
characters (e.g. '-')