Installscript correction

Fixed several minor bugs on the laptop install script. Now it works smothly without any error. It should be runnable also both on bash or dash.