Change in build.sh: with nonnull JD we can use the old wpm API