Fixed extracting of executables and checking for duplicates closes #1997
Further test improvements
Merge pull request #1998 from getlantern/1997

Fixed extracting of executables and checking for duplicates closes #1997