diagnostic: prefer guard clauses for readability
diagnostic: prefer guard clauses for readability

Guard clauses instead of if/unless blocks make the checks easier to
understand and reduce nesting, thus improving overall readability.

This includes the following additional minor changes:

- Make indentation of commands consistent inside diagnostic messages.
- Fix minor typos and inconsistent punctuation in diagnostic messages.
- Fix here documents to always start with `<<-EOS.undent` on a new line,
  followed by the message (indented once), followed by `EOS` (at the
  same level like `<<-EOS.undent`).
- Always separate the check logic (and guard clauses) from the following
  message by a single empty line (for consistency and readability).
- Standardize on `message` as the variable name when diagnostic messages
  need to be constructed from multiple parts.
- Where easily possible, adapt check logic to stay within 80-column
  limit, use more expressive variable names, and break down long
  expressions into multiple statements with intermediate results.

Closes #49.

Signed-off-by: Martin Afanasjew <54669547a225ff20cba8b75a4adca540eef25858@afanasjew.de>

reitermarkus/brew,rwhogg/brew,konqui/brew,AnastasiaSulyagina/brew,MikeMcQuaid/brew,nandub/brew,EricFromCanada/brew,toonetown/homebrew,mgrimes/brew,Linuxbrew/brew,bfontaine/brew,palxex/brew,mistydemeo/homebrew,gregory-nisbet/brew,claui/brew,DomT4/brew,jmsundar/brew,reelsense/brew,pseudocody/brew,amar-laksh/brew_sudo,aw1621107/brew,alyssais/brew,DomT4/brew,sjackman/homebrew,EricFromCanada/brew,muellermartin/dist,staticfloat/brew,mahori/brew,hanxue/linuxbrew,AnastasiaSulyagina/brew,sjackman/homebrew,palxex/brew,konqui/brew,maxim-belkin/brew,MikeMcQuaid/brew,staticfloat/brew,bfontaine/brew,vitorgalvao/brew,JCount/brew,MikeMcQuaid/brew,palxex/brew,mgrimes/brew,EricFromCanada/brew,pseudocody/brew,claui/brew,DomT4/brew,sjackman/homebrew,JCount/brew,Homebrew/brew,JCount/brew,mahori/brew,amar-laksh/brew_sudo,gordonmcshane/homebrew,jmsundar/brew,sjackman/homebrew,reitermarkus/brew,rwhogg/brew,muellermartin/dist,gregory-nisbet/brew,maxim-belkin/brew,reitermarkus/brew,zmwangx/brew,AnastasiaSulyagina/brew,MikeMcQuaid/brew,bfontaine/brew,reitermarkus/brew,Linuxbrew/brew,gordonmcshane/homebrew,muellermartin/dist,ilovezfs/brew,vitorgalvao/brew,aw1621107/brew,aw1621107/brew,mahori/brew,nandub/brew,ilovezfs/brew,mahori/brew,mistydemeo/homebrew,pseudocody/brew,toonetown/homebrew,tonyg/homebrew,nandub/brew,konqui/brew,Linuxbrew/brew,nandub/brew,maxim-belkin/brew,alyssais/brew,staticfloat/brew,JCount/brew,zmwangx/brew,amar-laksh/brew_sudo,vitorgalvao/brew,Homebrew/brew,gordonmcshane/homebrew,EricFromCanada/brew,Linuxbrew/brew,gregory-nisbet/brew,DomT4/brew,mistydemeo/homebrew,claui/brew,reelsense/brew,alyssais/brew,vitorgalvao/brew,tonyg/homebrew,zmwangx/brew,reelsense/brew,konqui/brew,Homebrew/brew,mgrimes/brew,hanxue/linuxbrew,rwhogg/brew,Homebrew/brew,jmsundar/brew,hanxue/linuxbrew,claui/brew,tonyg/homebrew,toonetown/homebrew,ilovezfs/brew