changed links to getwd() in diffusion code