Finite-mode regularization of the fermion functional integral