After testing a Python module, the build was broken because the test
created a __pycache__ dir, which CMake tried to install as a file because:
a) `if(IS_DIRECTORY foo)` requires a full path to work
b) For CMake, `IS_DIRECTORY(foo)` is not the same as `IS_DIRECTORY foo`
c) CMake is a pain sometimes