Adapted scripts for 'locale' directory rename.