handle correctly 'directory exists' case