49ers coach Tomsula took long road to NFL