Rewrite include resolver