Add support for running runtests.sh on Mavericks and Yosemite.