Fix Darwin code - bash syntax error, and adding Mavericks in the list of kernel versions

Solves #238.