[LUCENENET-454] added checks in build.targets to make sure ArtifactPaths isn't empty, causing the wrong files to be wiped (critical!) fixed build.cmd files to set proper environment variables