2 fixes

* Fixes double call to include_erts 
* Fixes following cycles in symlinks

Oddly the check for cycles was already in the code... But the boolean result was ignored. So I just made it actually not recurse if it is a cycle.