Simplified the copy of dirs in config.