Prevent a Nil exception error
Add support for detecing Mac OS 10.9 'Mavericks'