tests/regressions/rhbz895904.sh: Rewrite without multi-line expression.

RHEL 6-era bash cannot handle the multi-line $(...) expression in the
original code.  Rewrite the test so it is semantically the same but
doesn't have the expression that old bash can't handle.