Make std.file.timeLastModified safe