Create mapping file directory if it doesn't exist

The fs.writeFileSync(options.mapping, out) call currently throws an error if it doesn't already exist.