fix bug in roots.config.out() w/ dots in dir name

closes #477