fix so file path building in Py2.[45]