update update.R to check yosemite