RMI script made independent of running location