Correct and improve boot script