Added back support for D7 and previous versions on make generate command