fix tar detection on OSX, fix #1563