check if the output folder is a sane directory, otherwise try to create ...

...it.