Remove redundant invocations of perl

Removed duplicate #! invocations in loadAverage and lastRestart