mkdir is asynchronous, need to make it sync