bundle: include modules required in an if condition