Answer
Add the dynamic dependency explicitly in your own module's deploy.ini file, declaring the dependency from your module toward the possibly-not-installed customized module, rather than trying to directly reference that other module's generated package. The installer then generates the necessary dependency-handling package for you from that deploy.ini declaration regardless of whether the target customized module actually ends up installed in a given environment, correctly handling the conditional-dependency case.