Add makedir function from api package