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