Wait on ant subprocess to actually die. Factor hive metastore code into a funct.