Made smart_driver_epoch() more portable