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.
Merge pull request #526 from miykael/patch-1

Update legacy.py - buildtemplateparallel.sh