fixed writeAllConfig.sh