Auto-detect library name

Use the folder name by default for the library name
Merge pull request #7 from eddiemonge/patch-1

Auto-detect library name