`printf` displays everything on the same line, and with the way yarn
itself outputs its error messages, it would override our custom
messages on the terminal, preventing us to know why things failed.
Using echo instead fixes the issue.
Other fixes are `shellcheck` warnings (`read` without `-r` will fail
on input containing `\`).