Convert mkdir to synchronous method from async