Fixing TypeInitialization and TypeInvocation exceptions 

Thrown when 'where.exe' doesn't exist.