Update hook-sysconfig.py

fixes a weird issue where there may not be commonality between the prefixes.