files_root is actually the directory where the fusesoc command was executed, but what we want here is the location of the python file being executed so we can find the bluespec sources
To test, run: fusesoc --cores-root . run --setup --target test ucam:cheri:cheri-cap-lib-test
This adds a fusesoc generator to create the verilog files from the bluespec source.