Make script works on Yosemite.