Fix infinite recursion in case the include file has the same name as its parent

Signed-off-by: Michael Wild <michael.wild@andritz.com>