escape newlines in command output, print filename on error