KSENROLL-14743 Adjust run-unit-tests.sh to properly handle "all" modules

Created some functions to handle the cases wjere the MODULE is not defined but
also handle where it is set to "all".