made the sourcing of cfg.sh not dependent on LD_LIBRARY_PATH being set