Use relative path to sqlfile when calling resilient_replace, for cygwin compatibility.