Syntax check ksh
relax bash regexp a bit, to allow for /usr/bin/env bash