Fix kmimeassociationstest in case of symlinks in the paths
Detected by the FreeBSD CI. Reproduced by making ~/.qttest a symlink to ~/realdir/.qttest