Add utils.putFile() helper function.