Add type check for diff option paths.