Remove bsdtar by checking magic

Remove bsd dependency

FIxes #339