Do not trim module names
Trimming the filename "suffix" doesn't really make sense on Linux. If we have different versions of the same shared library (e.g. libreadline.so.5 and libreadline.so.7) then trimming the suffix would discard the version number.