Make logging and stats directories platform-specific.