Fix bug with file detect
Merge pull request #3 from ryanplasma/File_Detect_Bug

Fix bug with file detect