Resolved issue #546. Output format parsing from filename extension.