loop is used to search in every folder until we find first result.
probably pretty stupid, but should be more robust.