Cleanup output .pkl files and file endings