"she-bang" fix + output dir creation before copying stuff into

- create the output dir before copying stuff into