fixed issue in globus sync with remote path calculation (+cleanup)