Made logfile compatible with OS X and Linux systems

All tests pass