Create directory for output if specified path doesn't exist