Modified some scripts to work on Solaris as well
command-line-tools: fixed the rest of scripts to work on Solaris