Added compatibility for OSX (and BSD in general).

BSD/OS X follows the unix spec for date, which is not compatible with the linux spec. 
Installing coreutils on OS X makes gnu date available as 'gdate'.