in reply to using -M with File::Find (was: -M thing)

Try -M File::Basename::basename("$File::Find::name","");
The reason your code didn't pick up the modification is because File::Find is in the directory "categories"