build.xml: use get instead of getMethod for Forge