modified Build.PL so that the script is installed and fixed some perlcritic errors in the script
CORE-5194: modified the plugin to use IPC::Run to execute /sbin/service so that the output can easily be captured from both stdout and stderr.