fix system dependencies check