(imported from commit 1c633e048cad0cc4f629977363df6a8300dac65c)
(imported from commit d12d38b85846fa5ea42f123dd81674ae85e92667)
Instead just cd to the repository root for pyflakes. This is a marginally worse user experience, but should work on Mac OS where we don't have readlink -f. (imported from commit f3d1bfb086ff05642e438c16094415d98a6dab92)
(imported from commit 1fbbfd2c775729295a7a061ead67812a963dc924)