minor optimization for BF/Ook backends
separate output file handling from standard backend