[PATCH 5/6] moveconfig: Use a function to read files