Replaces hardcoded list with alldirs.