More sanity checks to make sure we're picking the right tokens from resource names. (Helps us deal with subfolders based on year, amongst other things.)