Fix PCRE test scripts for squares and triangular-numbers

They were accidentally broken in commit 76715be46ea5cff2a8d2a826a6dc778ff5a29f77.