modify build.xml to be more adaptive