fixed bugs in installer scripts