fs: fat: get_contents() always returns -1 for errors