Remove use of Perl from CentOS provisioner script

Replaced with a small shell pipeline instead.