Added Mac OS X Mavericks 10.9 and fixed a small bug in the if with version 10.6 and 10.7