Create output dir if does not exist.