add imaris library to java path

this fixes a problem that showed up out of the blue and could not be reproduced
on a different machine with the same setup, however this makes it work again on
the machine that had the problem that the imaris executable could not be found
anymore...
return to the original directory at the end