Wrap the cordova platform string in Platform object with name & version

This prevents having to duplicate the check wether or not the platform
string specifies a version or not.