refine to_lower.sh

Change-Id: Ibf3e9127ff0ede080f3400ba41c00c9b5e528e78