gen-ver.sh: Rewrite completely
gen-ver.sh: Rewrite completely

  * Use dirname(1) output
  * Add support for -c and -m options
  * Do not extract version from m4/version.m4

alech/libquvi-scripts,legatvs/libquvi-scripts,alech/libquvi-scripts,legatvs/libquvi-scripts