Replace file manipulation functions by the fcmd package