BIGTOP-3029: --parser is invalidated in puppet v4.x (addendum)

Signed-off-by: Kengo Seki <sekikn@apache.org>
diff --git a/build.gradle b/build.gradle
index c78fcd6..b1c07b7 100644
--- a/build.gradle
+++ b/build.gradle
@@ -227,11 +227,12 @@
     description: 'Setup dev. env via toolchain; Requires: Puppet, sudo',
     group: DEVENV_GROUP) {
   def command = ['sudo', 'puppet', 'apply', '-d']
-  if ("puppet --version".execute().text[0] == '3') {
+  def version = "sudo puppet --version".execute().text
+  if ('3.7' <= version && version < '4') {
     command.addAll(['--parser', 'future'])
   }
-  command.addAll(["--modulepath=${projectDir.absolutePath}:/etc/puppet/modules", '-e',
-      'include bigtop_toolchain::installer'])
+  command.addAll(["--modulepath=${projectDir.absolutePath}:/etc/puppet/modules:/usr/share/puppet/modules",
+    '-e', 'include bigtop_toolchain::installer'])
   workingDir '.'
   commandLine command
 }