Moves functions which need Bash 4.3 to a separate lib file.