dirnames fix