Fixed time checking on Linux