get the correct path if we come from a symlink