Fixing FILE_EXIST_REUSE constant use - see https://drupal.org/node/1540106#file_replace