Bugfix: use the entire path

Technically, this is no longer necessary, but it's the robust/defensive
thing to do.