Fixed runtests.sh script colors for Mac users

Fixed the color output for Mac users and added assign default values to the environment variables if they are not set.