Revert to legacy file API temporarily because 0.17 file utils will be deprecated