helper-functions.sh: sync with multiprocessing.eclass