Change directory for rewriter