R/calculate_intensity.R: Debugged te prepareBamFiles function

Signed-off-by: Charles Joly Beauparlant <Charles.Joly-Beauparlant@crchul.ulaval.ca>