Fixed the issue with new selenium v2.35 session id retrieval handshake
Corrected the version of selenium the changes were introduced in
Replaced `trim` with `rtrim`
Removed probably unnecessary `rtrim`
Merge pull request #266 from zerkms/selenium-2.35-handshake-change

Fixed the issue with new selenium v2.35 session id retrieval handshake