Dir::mkdir and File::join fixes

`core/file/join_spec.rb` passes and `Dir::mkdir` no longer makes a bunch of specs fail with permission errors.