patch from Jim Delahanty <mail_us@swbell.net> to ensure files are