Related https://github.com/astral-sh/setup-uv/issues/106
We can see the differences `uv --version` in different platforms:
OSX: uv 0.4.20 (0e1b25a53 2024-10-08)\n
Linux: uv 0.4.20\n
In getVersion function we split the output by space and return the
second part.
This PR trims the version number to remove the line break.