Update build batch script and use in test built source batch script