Set correct output file in gradle buildscript.