scripting: fix crash in quantal and possibly all other OS'es.

Parser rules on stack got cleaned up before they could be used.

Signed-off-by: Peter Soetens <peter@thesourceworks.com>