2 bug fixes in Publish-AzureVmDscExtension cmdlet

First fix is about confusing error message when configuration file path points to non-existing file.
Second is about #2788 
I also removed some unused code from cmdlet.