Fixed the executable generation that didn't work with multiple excutables.