Fixed mac compatibility issues because of bsd tar