reworked tar handle for os x