Refactored and improved cleanup on jenkins.sh

Change-Id: I20dc835ff7edf90f8e301da2ea86a8baf7d9bf07
Signed-off-by: David Caro <dcaroest@redhat.com>