if piwik version ends with 0, then remove 0 and keep short version to parse html
minor improvement on variable assignation