Added argument format check in ResourceFinder.