- get rid of hardcoded library path
- small bugfixes in script and spec file