Added function to ensure BAM index is newer than BAM, otherwise a new
one will be created.