Modified some scripts to work on Solaris as well
command-line-tools: improved some scripts
* getting script directory fixed
* sourcing scripts fixed to work also on Solaris
* some enhancements