Lokaltog/powerline — pull request #330 by Tuxdude (2013-03-15 05:57:59+00:00)
Title: Use $PWD for cwd before attempting getcwd() .

os.getcwd() follows symlinks and hence is not the same path as
returned from $PWD, which is more commonly used in the shell
prompt.