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