fix build detection regex