Create working directories if necessary
Make is_cached definitions parameter consistent with the rest
No need to check ref: here
some tidyups and PEP257 fixes
Print out the commands for now
Doc update, and draft email
Fix cachedir for check.sh