functions.sh: add a function for removing an item from a list in a shell variable