fixed dirname