Changed all the 'dir' args to 'dir_name' in the generic_fns.state module.
Authored by: bugman 2007-11-22
Parent: [r3803]
Child: [r3805]