Fix duplicate slashes on path builder