Update legacy.py - buildtemplateparallel.sh

The value of 'j' has to be changed into a string, otherwise you'll end up with "TypeError: cannot concatenate 'str' and 'int' objects" and the command can't be passed on to the console.