library.cfg -> library.sh: add support for loading long path + running scripts