Merge code from includes/file.lua into file module.