patch: make it able to create files (again)