beecut: exit if getopt_long_only returns an error

beecut now exits if an unknown option was given or an argument was missing
bee-check: fix reading the CONTENT file and the filename handling

there were problems if a filename contains spaces

replacing the for loop and always quoting the arguments fixes this issue
bee-query: fix reading the CONTENT file and the filename handling

there were problems if a filename contains spaces

replacing the for loops and always quoting arguments fixes this issue
beegetopt: free memory before exiting

beegetopt is leaking memory if BEE_GETOPT_ERROR occurs

the variables beeopts and beeoptptr are now freed before exiting
bee-check: declare bash functions with keyword 'function'
bee-query: declare bash functions with keyword 'function'
Merge branch 'fixes' of https://github.com/ruester/bee

* 'fixes' of https://github.com/ruester/bee:
  bee-query: declare bash functions with keyword 'function'
  bee-check: declare bash functions with keyword 'function'
  beegetopt: free memory before exiting
  bee-query: fix reading the CONTENT file and the filename handling
  bee-check: fix reading the CONTENT file and the filename handling
  beecut: exit if getopt_long_only returns an error