Fix mkdir sf

Fixes mkdir implementation to throw io exception if parent is a file