Use the right extension module suffix to find mathcode library