convert all folder names to lowercase, and adjust links