Added the logic to test for version 4.2 of bash.
Changed the declare -g exedir declarations to export exedir so that we
can test for an incorrect bash version.