Recursively check for undefined variables and skip inlining if they exist

Fixes https://github.com/substack/brfs/issues/5