Check os before sourcing os x specific file