Move OS X specific commands to separate file.