Almost 50 jobs have been secured with the sale of an East Midlands-based vehicle hire company out of administration.