configure.sh: fix puppetdb jetty conf for RHEL and workaround puppetmaster apache conf