Auto-detect library name

Use the folder name by default for the library name