Cli cleanup

When I integrated the Search-Replace-DB CLI into an existing shell script, a few things stood out to me as suboptimal (stray newlines, lack of newline at end of result, use of stdout instead of stderr for error output, and no exit code on error)