Adding parameter -f to sort command to disable adding of prefix ".bam".