(PS3/GX/XDK) Refactor find_and_set_first_file