fixing bugs in the install scripts