Some fixes to deploy.py

Corrected name of .so

Allowed the specification of the path to dump the .so files
Merge pull request #2 from laserson/fix-deploy

Some fixes to deploy.py