Refactor build scripts for Ant versus Phing