add condition if symlink exist for bam and bam.bai