Refactor the usage of strip_path_prefix option and make it more consistent across sanitizers