BS-9684: Make wait shell generic in SWTBot framework.