Can `path.join` be used here instead of platform detection?