Fix issues on linux with reattach-to-user-namespace