Fixes mkdir issue