Make script loading more stable.

Also, changed method of adding races and langs to match java.