Patches a testing utility to open files with correct permissions