Require tree can result in infinite loop

In cases where the file resides in the same directory it is requiring (`require_tree ./`), an infinite loop would occur. This fixes that. Probably best applied after #9 is merged, since this is based off that work.