Try to make calls to date command compatible with OSX. #10