Added; Ulimit check to glassfish 4 installation.

Added support for the glassfish 4 installation to make use of the new
ulimit script.
Additionally added to make sure it the ulimit script has the correct
permissions during installation with nrpe.