Make join work properly with leading slashes