Properly relativize asset paths from logical paths that are themselves relative and potentially contain `..`'s