Fix ant build for Windows (flatten task)