I get a syntax error on this line. I'm so used to bash, that I don't remember what sh wants here. Switching to `bash` above then requires remove the square brackets from this line.