Make fetch_packages work on mac