Fix release script: remove whitespace before comparison, and exclude dependency download output from version string