community/ufw: remove forking from global scope
In order to speed up obtaining metadata for all packages, we try to prevent forking calls in the global scope.
In this case, cut
is used to get the first two version components.
This can be easily done with parameter substitution instead.