It looks like you can generally use node's `path.join()` to deal with cases like this: `path.join("foo", "bar")` and `path.join("foo", "/bar")` both return `"foo/bar"`.