I wouldn't say that you really did anything wrong, smince. You approached cautiously, you didn't follow the squatters into the woods, you called 911 when you knew the place was occupied. Seem all right to me.
The only thing that I wouldn't have done was clear the place. But I've had no training with that, so I'd have just waited for the police.