Join urls or system paths, even with undefined values.