Added shellshock test

Cleaned up dns cache flushing for Yosemite, made OS version checking clearer, and added function to run some shellshock tests.