Distributed AMUSE: fixed handling and locating code input and output data directories