Fix build issue for automatic board detection