create output dir if it does not exist.