fixed bugs in arch setup script