allow ksh to drive this

1. port this script to ksh, not mksh or dash
KNOWN PROBLEMS
1. mksh, dash do not support {1..79}
2. the script does not handle 'file not found' correctly
3. CVE-2014-7187 test is problematic
check ARGV[1] or /bin/bash by default

ksh, mksh, dash passed the check.