Updates for different build configuration names

Script will now work correctly, even if build configurations are not named "Debug" and "Release", but only have those strings in their name.