fixed problem when a .bai file is given and the paths of the .bam and .bai files are not absolute