Add support for hive.variable.substitute.depth

The default for this is 40, which is pretty low for long and configurable
hive scripts.  Allowing this to be increased will help for
better reuse of hive scripts.

Change-Id: Iff69f39f9200e0a4804c1545920e13348d1b8ae2