Setting the mask of the file to avoid file locking issues