Adding code to set the working directory correctly on OS X Mavericks 10.9