Fix reference to undefined product_dir variable and ensure that thread_dump
and jolokia changes are made even if the product tarball has already been
unpacked.