fixed wrong file handling when trying to recognize the bpch format