Mac test fix

Changed the way build.xml works so that it now runs a different build.xml depending on OS.