[nfs] Recommendation from PR 3772 by jmarshallnz for code cleanup implemented avoiding the substr routine.

exportPath is only set if a valid export is found.