use fs.existsSync and fs.mkdir to ensure presense of directory