Fixed issue with kill and kill -9 logic if fedora did not stop properly

There was an error with the $count check for issuing a kill or kill -9 if the shutdown.sh script failed to stop tomcat...

changed
if [ $count -gt $kwait ]; then
to
if [ $count -eq $kwait ]; then

some minor other changes... did lots of testing and it all works