Rare event statistics: competition between pathways for overdamped stochastic dynamical systems