Fix machine startup script