Fixed a bug in the truncating of daemon-excluded paths.