Added alternate output directory support.