Rename components => contents in test-definitions
pep8
Clear all caches too
Move directory check outside mirror function, and do actual checkout