Added a lot of print-statements before system.

This is for better information to the user, e.g. which command was invoked,
and this also informs about the outfile-name.