Fixed the build
- Only run specific steps when building in visual studio
- Handle old and new KRE build output format