Fixed "flatten" top-module detection: Only use on fully selected designs