base-files/functions.sh: use command -v instead of which