Fixed bug in the auto-installer code