Tk recently lost its X variant (it now always uses X). That broke r, this commit fixes it. Tested on CentOS 7.