System independent mkdir