Fix sed regexes for rewriting "confdir ." and "logdir .".