Modified opening of re-written files in CC: from file() to open() function.