The first File.directory? check will always be false; lib is inside the versioned prefix.

The second line is attempting to call `install` on a string (which would fail, so this directory must be created by the prior line); you want `(lib/'clang').install`, if it's necessary.