Updated memory check using vmstat instead of free -m output