changed all dirnames to lower case