osx: python packaing: only strip trailing .so or .py
Python 3 compiled modules have a longer extension scipymodule.cpython_36m_darwin.so and if the entire extension is stripped the way cmake was handling it the file fails to be found and packaged.
I suspect the other platforms may need similar fixes, but have no time to test it right now.