Update nagiosautoinstall-ubuntu.sh

Change Nagios version to 4.0.1
Change variable to {...} them when their name contains underscore
Bug correction before nagios compilation