CA-287341: Reset the working directory after compressing the OVF package into OVA. Refactoring to avoid repetition and ensure the checks take place and exceptions are thrown at the right time.
CA-287341: Reset the working directory after compressing the OVF package into OVA.
Refactoring to avoid repetition and ensure the checks take place and exceptions
are thrown at the right time.

Signed-off-by: Konstantina Chremmou <a7d1f757a659045fb6db8c1e3849a1c8ad00b97a@citrix.com>

minli1/xenadmin,minli1/xenadmin,MihaelaStoica/xenadmin,kc284/xenadmin,kc284/xenadmin,xenserver/xenadmin,xenserver/xenadmin,minli1/xenadmin,minli1/xenadmin,kc284/xenadmin,MihaelaStoica/xenadmin,MihaelaStoica/xenadmin,MihaelaStoica/xenadmin,xenserver/xenadmin,kc284/xenadmin,MihaelaStoica/xenadmin,MihaelaStoica/xenadmin,minli1/xenadmin,kc284/xenadmin,minli1/xenadmin