Update extract.rb

adding unless to headers to make it backward compatible with tar version 0.0.4.