run-command-on-git-revisions prints error messages

The script now actually prints error messages when it runs on a dirty
repository.

"$@" instead of $* is more robust with respect to quoting whitespace in
arguments,
    see [this stackoverflow answer](http://stackoverflow.com/a/9915672)