Made the startup script to work with real sh
Made the startup script usable from outside its directory