Use `os.Stdout.Write` for printing to STDOUT

This updates the echo and head reimplementations to use
`os.Stdout.Write` for printing plain strings or bytes to STDOUT.