Fix detection of chrome packaged apps in Browserify environments.