I was using an obsolete method to check the apache version number. This *should* work in both apache2.4 and apache2.3 setups.