get_software_root() is the approach that other blocks are using as well, it's the proper approach here.