------------------------------------------------------------- Module. ------------------------------------------------------------- Create a directory if it doesn't exist yet.
function createDir (dir) {
  if (fs.existsSync(dir)) {
    return false
  }

  mkdirp.sync(dir)
  return true
}