nf: Fix bugs.

This fixes the uppercase to lowercase letter conversion (it didn't
translate from perl rename very well) and makes the script handle
files within distant directories properly.