Added config.ext.dist and improved reverse engineering