Removed code that deletes output folders automatically as this doesn't work on Amazon EMR. The error code is quite ellusive too. Better to do this with the build.xml file instead