Trimming the version number to prevent Rails error: Malformed version number string 1.4.2-0-g61ac9d8
Using split instead of truncating