NOBUG: attempted fix for list_valid_components.

This is not failing on my local jenkins, but on integration
and stronk7 it is reporting the wrong directory as the prefix for the
plugins (the local_ci dir - not the master branch dir).

Testing to see if setting dirroot before clearing the cache fixes this.