Updated extract function to use unrar