Add missing dependancies. Add mkdir.