HACK: why VERSION?
Create output dir if it is missing