Added directory checking for .ext names