Avis buying Zipcar in $500 million all-cash deal