test-lib: check Bash version for '-x' without using shell arrays