reset working-directory, make it buffer-local and fewer debug output