Adding logic to clean up old rally installs

Change-Id: Idee30bbeeb4d7b77b0ac2a0eb09ca56f2d7c488a
Merge "Adding logic to clean up old rally installs"