Add os.realpath() to resolve symbolic links on Posix systems

--HG--
extra : rebase_source : 4912d3d850c87998885df70b5ecd679853e949f9