Managing cached implementations
Recursively set permissions: Directories and executable files become 0o555. Other files become 0o444.
Safe_exceptionif there are special files or files with special mode bits set
Create a temporary directory in the directory where we would store a new implementation. This is used to set up a new implementation before being renamed if it turns out OK.