Usig file_ext in rfind()