Makefile.am: use remake comment targets. Add check-short target
check-common.sh.in: split typeset and assignment which makes it work on a Solaris environment