fileutils: perform ctypes function setup just the once (addendum)

(integrated from trunk branch change a7ba9f2 by Todd Whiteman <toddw@activestate.com>)