process.chdir() in a callback plus directory stacks