Fixed bug: outdir was created when it was empty
output dir now workds on windows
woking on path making bug