Update nagioscore.sh

Adapt configuration to Nagios Core 4.0.7
Missing prerequisite apache2-utils (htpasswd)
Fix for module cgi not enabled by default
make install-webconf uses invalid path, workaround and enable config