Remove obsolete absolute path to the FvwmCommand executable. Rely on $PATH by default.
Correctly handle buffers with a blank first line.
Quote arguments passed to the shell using shell-quote-arguments and replace shell-command with call-process-shell-command as the output buffers never actually received any output anyway.
Get rid of incomplete indentation code.