set os x variables using shell exec