I played an earlier TSLRCM version with a light-side female Exile and did not even trigger the HK factory, hence didn't get the ending I wanted either.
I forgot whether the factor is triggered by picking up items from defeated HK-50s, or by raising HK-47's influence (which would be a no-go, considering it requires a lot of dark side actions).