Fixed xcore build script

It wasn't terminated and allowed execution to fall through into the
tests.