Move bam-magic checking to file opening