Replace [...].join("/") with File.join(...)