imeta query now hard-coded to only get bam files, and fixed the query if no_pending_lanes