Allow rename files/directories - refs BT#9041
Fix mkdir process - refs BT#9041