[Scilab] Fix startup and some problems with segfault

Authored by sirgienko on Mar 30 2019, 7:25 PM.