keep user.dir in sync with getcwd(2)