Fixes bug 371: Out-of-sync error on PYTHONPATH change.

When the PYTHONPATH changes, the entries in the cache need to be invalidated.

Change-Id: I7801e79b80d78b3624c73354e8644f98ba6d9df4