replace: Fix check for gettimeofday()