Dynamo escape lowly San Jose with late goal