Calculate real path for symlinked IPython package in sysinfo

See discussion on #5725
Merge pull request #5731 from takluyver/sysinfo-realpath

Calculate real path for symlinked IPython package in sysinfo