Fix braced variables

Allow interpolation, nested vars and other substitution as per POSIX (IEEE 1003.1 2.6ff).