If worse comes to worse-you can use the long rear cables for the front brake and derailleur.This way you only have to replace 2 cables-not all four(guess you already know this).
I usually leave my cables a bit long-with maybe 2-3" extra-so I can cut and trim the ends a couple of times if I have to pull them.Luck,Charlie