create output directory if doesn't exist