Removed "set -o pipefail"
POSIX shell does not define pipefail option. Hence the scripts only worked in shells like bash.
Tests however succeeded since an older version of shellcheck was used. The bug in shellcheck was fixed in 2017: https://github.com/koalaman/shellcheck/issues/990