Ensured parent directories to output are created