Fix Build Scripts and update for Linux

Modifies original build script to both work with modern Linux based systems and to work with Electron

Signed-off-by: frap129 <frap129@gmail.com>