update pwd for mac