The `require.main.filename` is not defined and this cause error loading settings in new electron build.