Remove unnecessary lines from rc.local file.