Change default socket file and save dir for rewrite.