fix attachBinary to make it work with cozy files standalone
0.5.8