fixed the 'everything is a dir' issue by switching the ext check first and then going to check for dir. Also switchted the 'is it a dir' to look for cd program/ response codes instead of specifically 500s. This works with 6 char names. Committing and then will push to 1-5chars
Fixing the recursion on the file names. Abstracted the fileordir decision, made the stub var, reorganized the checkExt first and then the dir, added the %3f (is there another char in the filename?) check at more appropriate places.
Merge pull request #25 from WebBreacher/fixingdirs

Fixingdirs