Solve the problem at install time. At that moment you know exactly where the module (and hence the file) is going to
be installed - so just hardwire its location. Sure, hardwiring
locations has a lot of disadvantages, but considering you've
already committed to installing the file in a specific location, the damage has already been done.