fixed $PCRE_VERSION not expanding properly inside a string
switched to calling a curl in a more uniform style

the download URLs are put inside double quotes and a proper variable
expansion is made