Spice: dlopen failure on MacOS with sallen_key demo (lp:#1836104)

[Original report](https://bugs.launchpad.net/bugs/1836104) created by **Christian Conkle (conklech)**
```
Running Kicad 5.1.2-1 release on MacOS, simulating the sallen_key demo
fails. Error message below. The other three simulation demos do not exhibit
this problem, and I have not encountered it in any of my own projects.

Error message:

Circuit: KiCad schematic
Original line no.: 4, new internal line no.: 112:
Mismatch: 0 formal but 1 actual params.
Copies=120 Evals=119 Placeholders=0 Symbols=7 Errors=1
Numparam expansion errors: Problem with input file.
Error: ngspice.dll cannot recover and awaits to be detached
Note: can't find init file.
******
** ngspice-26 shared library
** Creation Date: Wed Apr 24 18:39:08 PDT 2019
******
dlopen(/private/var/folders/0_/g58ld9zs70x__mjp5z9pvrzh0000gp/T/AppTranslocation/F9162324-ED31-4D36-9F19-0C393091D3D1/d/kicad.app/Contents/PlugIns/sim/ngspice/scripts/ciderinit,
2): no suitable image found.  Did find:
/private/var/folders/0_/g58ld9zs70x__mjp5z9pvrzh0000gp/T/AppTranslocation/F9162324-ED31-4D36-9F19-0C393091D3D1/d/kicad.app/Contents/PlugIns/sim/ngspice/scripts/ciderinit:
file too short
/private/var/folders/0_/g58ld9zs70x__mjp5z9pvrzh0000gp/T/AppTranslocation/F9162324-ED31-4D36-9F19-0C393091D3D1/d/kicad.app/Contents/PlugIns/sim/ngspice/scripts/ciderinit:
file too short
Error: Library
/private/var/folders/0_/g58ld9zs70x__mjp5z9pvrzh0000gp/T/AppTranslocation/F9162324-ED31-4D36-9F19-0C393091D3D1/d/kicad.app/Contents/PlugIns/sim/ngspice/scripts/ciderinit
couldn't be loaded!
dlopen(/private/var/folders/0_/g58ld9zs70x__mjp5z9pvrzh0000gp/T/AppTranslocation/F9162324-ED31-4D36-9F19-0C393091D3D1/d/kicad.app/Contents/PlugIns/sim/ngspice/scripts/spinit,
2): no suitable image found.  Did find:
/private/var/folders/0_/g58ld9zs70x__mjp5z9pvrzh0000gp/T/AppTranslocation/F9162324-ED31-4D36-9F19-0C393091D3D1/d/kicad.app/Contents/PlugIns/sim/ngspice/scripts/spinit:
file too short
/private/var/folders/0_/g58ld9zs70x__mjp5z9pvrzh0000gp/T/AppTranslocation/F9162324-ED31-4D36-9F19-0C393091D3D1/d/kicad.app/Contents/PlugIns/sim/ngspice/scripts/spinit:
file too short
Error: Library
/private/var/folders/0_/g58ld9zs70x__mjp5z9pvrzh0000gp/T/AppTranslocation/F9162324-ED31-4D36-9F19-0C393091D3D1/d/kicad.app/Contents/PlugIns/sim/ngspice/scripts/spinit
couldn't be loaded!
dlopen(/private/var/folders/0_/g58ld9zs70x__mjp5z9pvrzh0000gp/T/AppTranslocation/F9162324-ED31-4D36-9F19-0C393091D3D1/d/kicad.app/Contents/PlugIns/sim/ngspice/scripts/devaxis,
2): no suitable image found.  Did find:
/private/var/folders/0_/g58ld9zs70x__mjp5z9pvrzh0000gp/T/AppTranslocation/F9162324-ED31-4D36-9F19-0C393091D3D1/d/kicad.app/Contents/PlugIns/sim/ngspice/scripts/devaxis:
file too short
/private/var/folders/0_/g58ld9zs70x__mjp5z9pvrzh0000gp/T/AppTranslocation/F9162324-ED31-4D36-9F19-0C393091D3D1/d/kicad.app/Contents/PlugIns/sim/ngspice/scripts/devaxis:
file too short
Error: Library
/private/var/folders/0_/g58ld9zs70x__mjp5z9pvrzh0000gp/T/AppTranslocation/F9162324-ED31-4D36-9F19-0C393091D3D1/d/kicad.app/Contents/PlugIns/sim/ngspice/scripts/devaxis
couldn't be loaded!
dlopen(/private/var/folders/0_/g58ld9zs70x__mjp5z9pvrzh0000gp/T/AppTranslocation/F9162324-ED31-4D36-9F19-0C393091D3D1/d/kicad.app/Contents/PlugIns/sim/ngspice/scripts/devload,
2): no suitable image found.  Did find:
/private/var/folders/0_/g58ld9zs70x__mjp5z9pvrzh0000gp/T/AppTranslocation/F9162324-ED31-4D36-9F19-0C393091D3D1/d/kicad.app/Contents/PlugIns/sim/ngspice/scripts/devload:
file too short
/private/var/folders/0_/g58ld9zs70x__mjp5z9pvrzh0000gp/T/AppTranslocation/F9162324-ED31-4D36-9F19-0C393091D3D1/d/kicad.app/Contents/PlugIns/sim/ngspice/scripts/devload:
file too short
Error: Library
/private/var/folders/0_/g58ld9zs70x__mjp5z9pvrzh0000gp/T/AppTranslocation/F9162324-ED31-4D36-9F19-0C393091D3D1/d/kicad.app/Contents/PlugIns/sim/ngspice/scripts/devload
couldn't be loaded!
dlopen(/private/var/folders/0_/g58ld9zs70x__mjp5z9pvrzh0000gp/T/AppTranslocation/F9162324-ED31-4D36-9F19-0C393091D3D1/d/kicad.app/Contents/PlugIns/sim/ngspice/scripts/spectrum,
2): no suitable image found.  Did find:
/private/var/folders/0_/g58ld9zs70x__mjp5z9pvrzh0000gp/T/AppTranslocation/F9162324-ED31-4D36-9F19-0C393091D3D1/d/kicad.app/Contents/PlugIns/sim/ngspice/scripts/spectrum:
unknown file type, first eight bytes: 0x2A 0x20 0x46 0x6F 0x75 0x72 0x69
0x65
/private/var/folders/0_/g58ld9zs70x__mjp5z9pvrzh0000gp/T/AppTranslocation/F9162324-ED31-4D36-9F19-0C393091D3D1/d/kicad.app/Contents/PlugIns/sim/ngspice/scripts/spectrum:
unknown file type, first eight bytes: 0x2A 0x20 0x46 0x6F 0x75 0x72 0x69
0x65
Error: Library
/private/var/folders/0_/g58ld9zs70x__mjp5z9pvrzh0000gp/T/AppTranslocation/F9162324-ED31-4D36-9F19-0C393091D3D1/d/kicad.app/Contents/PlugIns/sim/ngspice/scripts/spectrum
couldn't be loaded!
dlopen(/private/var/folders/0_/g58ld9zs70x__mjp5z9pvrzh0000gp/T/AppTranslocation/F9162324-ED31-4D36-9F19-0C393091D3D1/d/kicad.app/Contents/PlugIns/sim/ngspice/scripts/setplot,
2): no suitable image found.  Did find:
/private/var/folders/0_/g58ld9zs70x__mjp5z9pvrzh0000gp/T/AppTranslocation/F9162324-ED31-4D36-9F19-0C393091D3D1/d/kicad.app/Contents/PlugIns/sim/ngspice/scripts/setplot:
file too short
/private/var/folders/0_/g58ld9zs70x__mjp5z9pvrzh0000gp/T/AppTranslocation/F9162324-ED31-4D36-9F19-0C393091D3D1/d/kicad.app/Contents/PlugIns/sim/ngspice/scripts/setplot:
file too short
Error: Library
/private/var/folders/0_/g58ld9zs70x__mjp5z9pvrzh0000gp/T/AppTranslocation/F9162324-ED31-4D36-9F19-0C393091D3D1/d/kicad.app/Contents/PlugIns/sim/ngspice/scripts/setplot
couldn't be loaded!
Error: there aren't any circuits loaded.


Version info:

Application: kicad
Version: (5.1.2-1)-1, release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.54.0 LibreSSL/2.6.5 zlib/1.2.11 nghttp2/1.24.1
Platform: Mac OS X (Darwin 18.6.0 x86_64), 64 bit, Little endian, wxMac
Build Info:
    wxWidgets: 3.0.4 (UTF-8,STL containers,compatible with 2.8)
    Boost: 1.69.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.54.0
    Compiler: Clang 9.0.0 with C++ ABI 1002

Build settings:
    USE_WX_GRAPHICS_CONTEXT=ON
    USE_WX_OVERLAY=ON
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON
```
Original tags: eeschema macos ngspice

Story points: 10.0