NEW mkdir function working without permissions
FIX duplied dirs. Need to check backref deletion when directory is
deleted