functions.sh: add list_contains function for checking whether a list contains a speci...