R: Simplified path handling in RepositoryController.