Fix search for resources in filesystem