Fix test-archetypes.sh to install before chdir (#362)