Added option to print the unix like command itself

This is similar to the option `set -o verbose` in regular shell scripts. Partially related to #8.
Without this option some commands are completely silent, e.g. `mkdir('somedir')` would just create a directory silently. With the logCmd option it will additionally print `mkdir somedir`, to give the user an idea what the script is actually doing.