fix mkpath. I don't think it handled relative paths right.
fix formatting in file.jl