let get_extensions x = let basename = basename x in try let pos = String.index basename '.' in String.after basename (pos + 1) with Not_found -> ""