Change CoreConsole to use _get_wpgmptr
Change CoreConsole to use _get_wpgmptr

The first value in argv only contains the string that was used to
launch the process. This means that when the CoreConsole-based
application is on the PATH, some invocations of it (most notably
those done from 'cmd') cause that value to be incomplete.

Changing to use _get_wpgmptr ensures that we always get the full
path to the executable, no matter how it is executed.

Fix #1771

Dmitry-Me/coreclr,gkhanna79/coreclr,gkhanna79/coreclr,sperling/coreclr,vinnyrom/coreclr,ramarag/coreclr,sjsinju/coreclr,blackdwarf/coreclr,sjsinju/coreclr,mmitche/coreclr,KrzysztofCwalina/coreclr,ramarag/coreclr,JosephTremoulet/coreclr,martinwoodward/coreclr,geertdoornbos/coreclr,naamunds/coreclr,wtgodbe/coreclr,roncain/coreclr,poizan42/coreclr,AlfredoMS/coreclr,dasMulli/coreclr,YongseopKim/coreclr,mskvortsov/coreclr,stormleoxia/coreclr,Godin/coreclr,wtgodbe/coreclr,krytarowski/coreclr,James-Ko/coreclr,JosephTremoulet/coreclr,iamjasonp/coreclr,neurospeech/coreclr,gkhanna79/coreclr,parjong/coreclr,manu-silicon/coreclr,poizan42/coreclr,AlexGhiondea/coreclr,bartonjs/coreclr,bartonjs/coreclr,krytarowski/coreclr,schellap/coreclr,cydhaselton/coreclr,cmckinsey/coreclr,cshung/coreclr,alexperovich/coreclr,rartemev/coreclr,naamunds/coreclr,cydhaselton/coreclr,Lucrecious/coreclr,martinwoodward/coreclr,stormleoxia/coreclr,dasMulli/coreclr,kyulee1/coreclr,AlfredoMS/coreclr,naamunds/coreclr,roncain/coreclr,swgillespie/coreclr,pgavlin/coreclr,krytarowski/coreclr,dpodder/coreclr,sejongoh/coreclr,mokchhya/coreclr,blackdwarf/coreclr,sjsinju/coreclr,AlfredoMS/coreclr,vinnyrom/coreclr,iamjasonp/coreclr,bartdesmet/coreclr,sagood/coreclr,mskvortsov/coreclr,shahid-pk/coreclr,yeaicc/coreclr,ZhichengZhu/coreclr,ktos/coreclr,cshung/coreclr,ruben-ayrapetyan/coreclr,mokchhya/coreclr,vinnyrom/coreclr,stormleoxia/coreclr,James-Ko/coreclr,alexperovich/coreclr,iamjasonp/coreclr,Dmitry-Me/coreclr,gkhanna79/coreclr,martinwoodward/coreclr,dasMulli/coreclr,mocsy/coreclr,KrzysztofCwalina/coreclr,KrzysztofCwalina/coreclr,yeaicc/coreclr,blackdwarf/coreclr,mmitche/coreclr,benpye/coreclr,Godin/coreclr,mmitche/coreclr,wateret/coreclr,roncain/coreclr,kyulee1/coreclr,cmckinsey/coreclr,ktos/coreclr,jamesqo/coreclr,ramarag/coreclr,naamunds/coreclr,ZhichengZhu/coreclr,parjong/coreclr,taylorjonl/coreclr,JonHanna/coreclr,Lucrecious/coreclr,krk/coreclr,ruben-ayrapetyan/coreclr,taylorjonl/coreclr,jhendrixMSFT/coreclr,AlexGhiondea/coreclr,hseok-oh/coreclr,AlfredoMS/coreclr,sejongoh/coreclr,dasMulli/coreclr,schellap/coreclr,benpye/coreclr,geertdoornbos/coreclr,hseok-oh/coreclr,josteink/coreclr,swgillespie/coreclr,schellap/coreclr,naamunds/coreclr,stormleoxia/coreclr,bartdesmet/coreclr,ruben-ayrapetyan/coreclr,YongseopKim/coreclr,AlexGhiondea/coreclr,qiudesong/coreclr,cydhaselton/coreclr,Lucrecious/coreclr,AlfredoMS/coreclr,geertdoornbos/coreclr,chuck-mitchell/coreclr,martinwoodward/coreclr,sperling/coreclr,chuck-mitchell/coreclr,ZhichengZhu/coreclr,parjong/coreclr,neurospeech/coreclr,blackdwarf/coreclr,manu-silicon/coreclr,martinwoodward/coreclr,krk/coreclr,dpodder/coreclr,dasMulli/coreclr,stormleoxia/coreclr,LLITCHEV/coreclr,Lucrecious/coreclr,cshung/coreclr,tijoytom/coreclr,hseok-oh/coreclr,pgavlin/coreclr,alexperovich/coreclr,botaberg/coreclr,mokchhya/coreclr,Dmitry-Me/coreclr,yizhang82/coreclr,sperling/coreclr,mmitche/coreclr,AlexGhiondea/coreclr,gkhanna79/coreclr,Lucrecious/coreclr,Dmitry-Me/coreclr,sjsinju/coreclr,sagood/coreclr,bartonjs/coreclr,taylorjonl/coreclr,mokchhya/coreclr,bartdesmet/coreclr,mocsy/coreclr,mmitche/coreclr,JonHanna/coreclr,bartdesmet/coreclr,neurospeech/coreclr,wtgodbe/coreclr,blackdwarf/coreclr,ragmani/coreclr,ktos/coreclr,wkchoy74/coreclr,geertdoornbos/coreclr,qiudesong/coreclr,bartdesmet/coreclr,benpye/coreclr,parjong/coreclr,Dmitry-Me/coreclr,manu-silicon/coreclr,josteink/coreclr,YongseopKim/coreclr,bitcrazed/coreclr,josteink/coreclr,orthoxerox/coreclr,roncain/coreclr,ktos/coreclr,sejongoh/coreclr,bitcrazed/coreclr,KrzysztofCwalina/coreclr,sejongoh/coreclr,iamjasonp/coreclr,alexperovich/coreclr,ZhichengZhu/coreclr,mocsy/coreclr,yizhang82/coreclr,krytarowski/coreclr,Godin/coreclr,mocsy/coreclr,alexperovich/coreclr,ramarag/coreclr,wateret/coreclr,orthoxerox/coreclr,jhendrixMSFT/coreclr,AlfredoMS/coreclr,tijoytom/coreclr,schellap/coreclr,James-Ko/coreclr,bitcrazed/coreclr,ramarag/coreclr,krytarowski/coreclr,neurospeech/coreclr,parjong/coreclr,ruben-ayrapetyan/coreclr,vinnyrom/coreclr,wkchoy74/coreclr,JosephTremoulet/coreclr,SlavaRa/coreclr,wkchoy74/coreclr,KrzysztofCwalina/coreclr,blackdwarf/coreclr,neurospeech/coreclr,bitcrazed/coreclr,josteink/coreclr,JonHanna/coreclr,Godin/coreclr,wateret/coreclr,schellap/coreclr,andschwa/coreclr,bitcrazed/coreclr,schellap/coreclr,hseok-oh/coreclr,tijoytom/coreclr,botaberg/coreclr,chuck-mitchell/coreclr,benpye/coreclr,bitcrazed/coreclr,Djuffin/coreclr,KrzysztofCwalina/coreclr,shahid-pk/coreclr,ZhichengZhu/coreclr,geertdoornbos/coreclr,orthoxerox/coreclr,sejongoh/coreclr,benpye/coreclr,ZhichengZhu/coreclr,mocsy/coreclr,schellap/coreclr,swgillespie/coreclr,sperling/coreclr,chuck-mitchell/coreclr,hseok-oh/coreclr,cshung/coreclr,LLITCHEV/coreclr,ruben-ayrapetyan/coreclr,naamunds/coreclr,pgavlin/coreclr,chuck-mitchell/coreclr,sagood/coreclr,swgillespie/coreclr,stormleoxia/coreclr,LLITCHEV/coreclr,cmckinsey/coreclr,sagood/coreclr,andschwa/coreclr,yeaicc/coreclr,chuck-mitchell/coreclr,geertdoornbos/coreclr,andschwa/coreclr,roncain/coreclr,SlavaRa/coreclr,bartonjs/coreclr,kyulee1/coreclr,jhendrixMSFT/coreclr,parjong/coreclr,Lucrecious/coreclr,bartdesmet/coreclr,mokchhya/coreclr,cmckinsey/coreclr,andschwa/coreclr,yizhang82/coreclr,taylorjonl/coreclr,andschwa/coreclr,bartonjs/coreclr,LLITCHEV/coreclr,ragmani/coreclr,roncain/coreclr,mocsy/coreclr,manu-silicon/coreclr,poizan42/coreclr,martinwoodward/coreclr,russellhadley/coreclr,swgillespie/coreclr,ragmani/coreclr,krk/coreclr,Djuffin/coreclr,shahid-pk/coreclr,pgavlin/coreclr,andschwa/coreclr,sjsinju/coreclr,hseok-oh/coreclr,cmckinsey/coreclr,botaberg/coreclr,cshung/coreclr,benpye/coreclr,josteink/coreclr,ragmani/coreclr,wkchoy74/coreclr,wateret/coreclr,krytarowski/coreclr,SlavaRa/coreclr,bartonjs/coreclr,sejongoh/coreclr,dpodder/coreclr,SlavaRa/coreclr,Djuffin/coreclr,poizan42/coreclr,James-Ko/coreclr,wateret/coreclr,SlavaRa/coreclr,cmckinsey/coreclr,mokchhya/coreclr,yeaicc/coreclr,wtgodbe/coreclr,qiudesong/coreclr,bartonjs/coreclr,wkchoy74/coreclr,AlexGhiondea/coreclr,neurospeech/coreclr,russellhadley/coreclr,qiudesong/coreclr,alexperovich/coreclr,tijoytom/coreclr,JosephTremoulet/coreclr,cshung/coreclr,wateret/coreclr,iamjasonp/coreclr,qiudesong/coreclr,orthoxerox/coreclr,russellhadley/coreclr,manu-silicon/coreclr,Lucrecious/coreclr,ktos/coreclr,mskvortsov/coreclr,shahid-pk/coreclr,bitcrazed/coreclr,ramarag/coreclr,yizhang82/coreclr,YongseopKim/coreclr,mocsy/coreclr,James-Ko/coreclr,shahid-pk/coreclr,ktos/coreclr,rartemev/coreclr,mskvortsov/coreclr,yizhang82/coreclr,jamesqo/coreclr,Dmitry-Me/coreclr,stormleoxia/coreclr,sperling/coreclr,ramarag/coreclr,Godin/coreclr,poizan42/coreclr,wtgodbe/coreclr,kyulee1/coreclr,sagood/coreclr,manu-silicon/coreclr,taylorjonl/coreclr,martinwoodward/coreclr,sperling/coreclr,Djuffin/coreclr,gkhanna79/coreclr,sperling/coreclr,jhendrixMSFT/coreclr,blackdwarf/coreclr,mskvortsov/coreclr,cmckinsey/coreclr,dasMulli/coreclr,YongseopKim/coreclr,LLITCHEV/coreclr,YongseopKim/coreclr,dasMulli/coreclr,chuck-mitchell/coreclr,ZhichengZhu/coreclr,jamesqo/coreclr,benpye/coreclr,LLITCHEV/coreclr,swgillespie/coreclr,shahid-pk/coreclr,JosephTremoulet/coreclr,cydhaselton/coreclr,taylorjonl/coreclr,taylorjonl/coreclr,Godin/coreclr,vinnyrom/coreclr,botaberg/coreclr,vinnyrom/coreclr,Djuffin/coreclr,jhendrixMSFT/coreclr,dpodder/coreclr,rartemev/coreclr,tijoytom/coreclr,wkchoy74/coreclr,rartemev/coreclr,cydhaselton/coreclr,yeaicc/coreclr,kyulee1/coreclr,jamesqo/coreclr,jamesqo/coreclr,russellhadley/coreclr,rartemev/coreclr,krk/coreclr,swgillespie/coreclr,yeaicc/coreclr,rartemev/coreclr,naamunds/coreclr,orthoxerox/coreclr,sjsinju/coreclr,wkchoy74/coreclr,geertdoornbos/coreclr,mskvortsov/coreclr,James-Ko/coreclr,AlexGhiondea/coreclr,Godin/coreclr,pgavlin/coreclr,josteink/coreclr,Dmitry-Me/coreclr,Djuffin/coreclr,jamesqo/coreclr,kyulee1/coreclr,JonHanna/coreclr,ragmani/coreclr,shahid-pk/coreclr,mokchhya/coreclr,KrzysztofCwalina/coreclr,sagood/coreclr,manu-silicon/coreclr,pgavlin/coreclr,tijoytom/coreclr,botaberg/coreclr,russellhadley/coreclr,ragmani/coreclr,poizan42/coreclr,iamjasonp/coreclr,krk/coreclr,JosephTremoulet/coreclr,cydhaselton/coreclr,sejongoh/coreclr,dpodder/coreclr,bartdesmet/coreclr,dpodder/coreclr,LLITCHEV/coreclr,orthoxerox/coreclr,botaberg/coreclr,ktos/coreclr,wtgodbe/coreclr,jhendrixMSFT/coreclr,JonHanna/coreclr,krk/coreclr,russellhadley/coreclr,vinnyrom/coreclr,JonHanna/coreclr,yizhang82/coreclr,SlavaRa/coreclr,ruben-ayrapetyan/coreclr,qiudesong/coreclr,andschwa/coreclr,jhendrixMSFT/coreclr,josteink/coreclr,roncain/coreclr,yeaicc/coreclr,mmitche/coreclr