refactor newrelic and zend-opcache install routines