base/file.jl: fix mkpath for Windows and simplify cd slightly.