lib-cvs.sh: use the $( ... ) construct for command substitution