Modified lookup-proc-variable. Now recursive, works with regular variables as well.