Create output dir if it does not exist.