Remove std.file import, and reintroduce missing enforce function.