Fixing copying hs_err_pid files when Gradle crashes

Bug: 146217083
Change-Id: Ic80f6421877380bc8ac002f5756503eec3d2bbd6
diff --git a/gradlew b/gradlew
index 5cb7d61..f72592d 100755
--- a/gradlew
+++ b/gradlew
@@ -217,7 +217,7 @@
   if [ -n "$GRADLE_USER_HOME" ]; then
     if [ -n "$DIST_DIR" ]; then
       cp -r "$GRADLE_USER_HOME/daemon" "$DIST_DIR/gradle-daemon"
-      cp $SCRIPT_PATH/hs_err* $DIST_DIR/ || true
+      cp ./hs_err* $DIST_DIR/ 2>/dev/null || true
       # TODO (146217083): consider removing these after the Gradle daemons stop occasionally dying
       dmesg | tail -n 40 || true
       echo "Current java processes: '$(ps -eF | grep java)'"