Revert to original .bam to .sam name munging.
More debug statements.