More debug output on cmd.run in case of missing cwd

Hello,

Yet another patch to display more debug output.

Kind regards,