Fix Utils.ensurePathExists