Fixed rc.local edit check