Make cookbook work with application 4.x