You can do this by creating route based vpn for both connections.
Setup ospf route exchange across the tunnel interfaces. Use cost metrics to set the preferred tunnel.
When the preferred tunnel is lost the ospf neighbor will go down and the routes will failover to the other tunnel.