checking Dirname