Fix transformer with echo

Do not pass the echo command as a string operand to the shell. Instead,
use $(G.echo) directly, which will work cross-platform.
Fix transformer with echo

On windows, do not pass the echo command as a string operand to the
shell. Instead, use $(G.echo) directly.
Use filestat() instead of perl stat
Suppress failure when using filestat, due to #4791.