Fixed bug in build, added travis svg

Now only adds .so if .so not already in name of library.