coverage.sh: Fix warning when running find

find: warning: you have specified the global option -maxdepth after the
argument -type, but global options are not positional, i.e., -maxdepth
affects tests specified before it as well as those specified after it.
Please specify global options before other arguments.

Signed-off-by: Edwin Kempin <ekempin@google.com>
Change-Id: I0fd82d6f38cf90400cbac4de02aed70ef6496d34
diff --git a/tools/coverage.sh b/tools/coverage.sh
index 62dc22c..c92d5cf 100755
--- a/tools/coverage.sh
+++ b/tools/coverage.sh
@@ -33,7 +33,7 @@
 cp -r {java,javatests}/* ${destdir}/java
 
 mkdir -p ${destdir}/plugins
-for plugin in `find plugins/ -type d -maxdepth 1`
+for plugin in `find plugins/ -maxdepth 1 -type d`
 do
   mkdir -p ${destdir}/${plugin}/java
   cp -r plugins/*/{java,javatests}/* ${destdir}/${plugin}/java