Fixed some paths in the dynamic rewriter