CURDIR is updated by make -C, PWD is not. Originally committed as revision 21542 to svn://svn.ffmpeg.org/ffmpeg/trunk