Adding -f flag to samtools sort to give output name directly.