Restructured logic to work on windows machines.
Restructured logic to work on windows machines.

aashish24/tangelo,mathstuf/tangelo,Kitware/tangelo,aashish24/tangelo,aashish24/tangelo,mathstuf/tangelo,mathstuf/tangelo,ecohealthalliance/tangelo,Kitware/tangelo,ecohealthalliance/tangelo,Kitware/tangelo,ecohealthalliance/tangelo