Fix RMI when run in distribution JARs.