utilizing tmp folder location
Bugfix bam file detection