Fix upload files process - refs BT#9041
Create unexisting directories - refs BT#9041
Fix get root path for users in session - refs BT#9041