codeintel: store the platform name once it's retrieved

(integrated from master branch change b5004e5 by Todd Whiteman <toddw@activestate.com>)