Cleaner solution for resolving pathnames relative to the --root setting, including for paths inside CSS files.