Determine backend type from file extension
Special filenames: - "terminal": Uses ASCII backend and outputs to stdout