Some paths may not be canonical, and sorting paths solves symlink issues only when paths are canonical. Fixes #647.