make File comparison on canonical value to avoid problems with symlinks