Update restart.sh
Adding shared libraries to the .gitignore
Fixes to the paths in the restart script.