Create output directory automatically