fixed raise condition at creating internal dirs