Fix optparse.OptionConflictError when running gradle-batch command