Use the correct JavaScript environment search path dir
Use the correct JavaScript environment search path dir

The directory was not being set correctly for packaged builds.  In particular base::DIR_SOURCE_ROOT was returning a directory that wasn't correct.   In dev builds it would return /Users/bbondy/projects/brave/browser-laptop-bootstrap/src/browser-laptop and in packaged builds that were run from /Users/bbondy/projects/brave/browser-laptop-bootstrap/src/browser-laptop/Brave-darwin-x64/Brave.app it would return /Users/bbondy/projects/brave/browser-laptop-bootstrap/src/.

To fix this I just use the resource path's app.asar file if it exists first and only fallback to the search path if that doesn't exist since it only exists in packaged builds.

Fix https://github.com/brave/browser-laptop/issues/8195

Auditors: da39a3ee5e6b4b0d3255bfef95601890afd80709@bridiver

brave/muon,brave/muon,brave/electron,brave/electron,brave/muon,brave/electron,brave/electron,brave/muon,brave/electron,brave/muon,brave/electron,brave/muon