Create output dir if necessary and possible