Fix log output on Linux