Updated script for better compatibility, back to bash.
added loadavg to call