Allow detectEnglish.py to deal with differing line endings

Currently detectEnglish.py will fail if dictionary.txt uses \r line endings instead of \n. Also added in def main to allow debugging