rc: fix and improve script scanning START and STOP