std.file: clean imports

Due to https://issues.dlang.org/show_bug.cgi?id=10378 please don't use unqualified local imports in functions.