Replacement scanner is now recursive

Note:
This recursion currently recursively searches for \include and
\input within other macros. Perhaps this is not a desired behavior.