Fixed issue that always re-indexes bam-files.