Fixed #3499: modify build.xml for NPM

modify build.xml for NPM