tempest release detection refactoring

Change-Id: Ic262ec6b369248959a7fa6a9819badf81b8d9d4f